package com.qf.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.qf.model.StandardReport;
import com.qf.model.StandardSubmit;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * 与es交互
 * @author lenovo
 * @version V1.0
 * @Date 2021/11/25 11:46
 */
public interface EsService {

    void add(StandardSubmit standardSubmit) throws Exception;

    void updateLog(StandardReport report) throws IOException;

    List<Map> searchLog(String paras) throws Exception;

    Long searchLogCount(String paras) throws IOException;

    Map<String, Long> statSendStatus(String paras) throws JsonProcessingException, Exception;
}
